<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>智能进出口服务平台</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <style type="text/css">
        .layui-table[lay-size=sm] tbody td{padding: 5px 0px;}
        .layui-table[lay-size=sm] tbody tr.edit td{padding: 0px;}
        .layui-table[lay-size=sm] tbody td input{border: 0px;}
        .layui-card-body .layui-table{margin: 0px;}
        .tabBody{overflow-y: auto;max-height: 310px;}
        .layui-form-radio{margin: 0px;}
        .m-text{padding:0px 8px;}
        .m-input{display: none;}
        .edit .m-text{display: none;}
        .edit .m-input{display: block;}
        .original-info{text-decoration: line-through;}
        .new-info{color: #ff0000;}
    </style>
</head>
<body>
<div class="tsf-page-content" style="padding: 0px;bottom: 0px;">
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>主单信息</span></div>
    <div class="layui-card-body">
        <div id="orderView"></div>
        <div id="logistiscsView"></div>
    </div>
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-file-text"></i>附件资料</span></div>
    <div class="layui-card-body">
        <a href="javascript:" class="file-size" doc-id="" show-file="expOrderAll" edit="false"></a>
    </div>
    <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>产品信息</span></div>
    <div class="layui-card-body">
        <div>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm share-net-weight"><i class="fa fa-sitemap"></i> 分摊净重</button>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm share-gross-weight"><i class="fa fa-sitemap"></i> 分摊毛重</button>
            <button type="button" class="layui-btn layui-btn-warm layui-btn-sm back-business"><i class="fa fa-reply"></i> 退回修改</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm edit-member"><i class="fa fa-edit"></i> 编辑明细</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm save-edit-member tsf-hide"><i class="fa fa-save"></i> 保存修改</button>
            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm print-checklist"><i class="fa fa-print"></i> 打印核对单</button>
            <button type="button" class="layui-btn layui-btn-sm confirm-inspection"><i class="fa fa-check-square"></i> 验货完成</button>
            <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-window"><i class="fa fa-close"></i>取消关闭</button>
        </div>
        <form class="layui-form" method="post" lay-filter="orderMemberForm" id="orderMemberForm">
            <div id="tabContainer" style="overflow-x: auto;margin-top: 10px;">
                <div style="min-width: 1500px;">
                    <table class="layui-table" lay-size="sm">
                        <colgroup>
                            <col width="45">
                            <col width="70">
                            <col width="150">
                            <col width="130">
                            <col width="130">
                            <col width="80">
                            <col width="80">
                            <col width="80">
                            <col width="90">
                            <col width="50">
                            <col width="80">
                            <col width="80">
                            <col width="80">
                            <col width="90">
                            <col>
                        </colgroup>
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>物料状态</th>
                            <th>型号</th>
                            <th>品名</th>
                            <th>品牌</th>
                            <th>单位</th>
                            <th>数量</th>
                            <th>单价</th>
                            <th>总价</th>
                            <th>箱数</th>
                            <th>箱号</th>
                            <th>净重(KG)</th>
                            <th>毛重(KG)</th>
                            <th>客户料号</th>
                            <th>规格描述</th>
                        </tr>
                        </thead>
                    </table>
                    <div class="tabBody">
                        <table class="layui-table" lay-size="sm">
                            <colgroup>
                                <col width="45">
                                <col width="70">
                                <col width="150">
                                <col width="130">
                                <col width="130">
                                <col width="80">
                                <col width="80">
                                <col width="80">
                                <col width="90">
                                <col width="50">
                                <col width="80">
                                <col width="80">
                                <col width="80">
                                <col width="90">
                                <col>
                            </colgroup>
                            <tbody id="materialBody">

                            </tbody>
                        </table>
                    </div>
                    <table class="layui-table" lay-size="sm">
                        <tfoot>
                        <tr>
                            <th>
                                <div class="layui-row">
                                    <div class="layui-col-md2">
                                        总数量：<h2 style="display: inline-block" id="quantityTotal">0.0</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总价：<h2 style="display: inline-block" id="totalPrice">0.0</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总箱数：<h2 style="display: inline-block" id="cartonTotal">0</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总净重：<h2 style="display: inline-block" id="netWeightTotal">0.0000</h2>
                                    </div>
                                    <div class="layui-col-md2">
                                        总毛重：<h2 style="display: inline-block" id="grossWeightTotal">0.0000</h2>
                                    </div>
                                </div>
                            </th>
                        </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
        </form>
    </div>
</div>

<script type="text/html" id="orderViewTemp">
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">订单号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">订单日期：</label><label class="fval">{{d.orderDate}}</label></div>
        <div class="layui-col-md3"><label class="fkey">客户单号：</label><label class="fval">{{d.clientNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">客户名称：</label><label class="fval">{{d.customerName}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">报关类型：</label><label class="fval">{{d.declareTypeDesc}}</label></div>
        <div class="layui-col-md3"><label class="fkey">成交方式：</label><label class="fval">{{d.transactionModeDesc}}</label></div>
        <div class="layui-col-md3"><label class="fkey">境内货源地：</label><label class="fval">{{d.districtCodeName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">运抵国(地区)：</label><label class="fval">{{d.cusTradeCountryName}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">贸易国(地区)：</label><label class="fval">{{d.cusTradeNationCodeName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">指运港：</label><label class="fval">{{d.distinatePortName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">运输方式：</label><label class="fval">{{d.cusTrafModeName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">最终目的国：</label><label class="fval">{{d.destinationCountryName}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">外贸合同卖方：</label><label class="fval">{{d.subjectName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">外贸合买同方：</label><label class="fval">{{d.subjectOverseasName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">币制：</label><label class="fval">{{d.currencyName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">备注：</label><label class="fval">{{d.memo}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">协议报价：</label><label class="fval">{{d.agreementDesc}}</label></div>
    </div>
</script>
<script  type="text/html" id="logistiscsViewTemp">
    <div class="layui-row">
        <div class="layui-col-md12">
            <label class="fkey">国内交货方式：</label>
            <label class="fval">
                {{d.deliveryModeName}}
                {{#if(d.deliveryMode=='ExpressDelivery'){ }}
                快递单号：{{d.deliveryExpressNo}}
                {{#}else if(d.deliveryMode=='TakeDelivery'){ }}
                <span class="layui-badge">{{d.deliveryMethodDesc}}</span>  {{d.takeTime}}
                【{{d.deliveryCompanyName}}】 {{d.deliveryAddress}} ({{d.deliveryLinkPerson}} {{d.deliveryLinkTel}})
                {{#}}}
            </label>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">交货备注：</label><label class="fval">{{d.deliveryModeMemo}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12">
            <label class="fkey">境外交货方式：</label>
            <label class="fval">
                {{d.isCharterCar?'包车':'不包车'}}
                {{#if(d.isCharterCar==true){ }}
                <span class="layui-badge">{{d.deliveryDestinationDesc}}</span>
                {{#if(d.deliveryDestination=='destination'){ }}
                【{{d.takeLinkCompany}}】 {{d.takeAddress}} ({{d.takeLinkPerson}} {{d.takeLinkTel}})
                {{#}}}
                {{#}}}
            </label>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12"><label class="fkey">交货备注：</label><label class="fval">{{d.receivingModeMemo}}</label></div>
    </div>
</script>

<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js?v=202001010101"></script>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/js/sel-load.js?v=202001010101"></script>
<script type="text/javascript" src="/js/autocomplete.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file-config.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file.js?v=202001010101"></script>
<script type="text/javascript" src="/order/exp/inspection.js?v=202012240957001"></script>
</body>
</html>